package com.ruibang.glass.purchase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 采购关联物品表
 * </p>
 *
 * @author mameng
 * @since 2024-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "采购订单关联物品表")
@TableName("g_purchase_related_product")
public class PurchaseRelatedProduct extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "物料名称")
    private String itemName;

    @ApiModelProperty(value = "物料Id")
    private String itemId;

    @ApiModelProperty(value = "物料代码")
    private String itemCode;

    @ApiModelProperty(value = "物料类型")
    private String itemType;

    @ApiModelProperty(value = "订单Id")
    private String saleOrderId;

    @ApiModelProperty(value = "规格型号")
    private String specificationModel;

    @ApiModelProperty(value = "数量")
    private Double quantity;

    @ApiModelProperty(value = "初始数量")
    private Double initQuantity;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "含税单价")
    private BigDecimal taxInclusiveUnitPrice;

    @ApiModelProperty(value = "含税总价")
    private BigDecimal taxInclusiveTotalPrice;

    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;

    @ApiModelProperty(value = "不含税单价")
    private BigDecimal taxExclusiveUnitPrice;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "货币单位")
    private String currencyUnit;

    @ApiModelProperty(value = "入库数量")
    private Double warehousingQuantity;

    @ApiModelProperty(value = "批次号")
    @TableField(exist = false)
    private String pcNumber;

    @ApiModelProperty(value = "采购订单详情ID")
    private String detailId;

    @ApiModelProperty(value = "含量(万分比)")
    private Double contentRatio;
}
